package com.apes.scm.masterdata.stock.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.stock.model.StockUsage;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.domain.Pageable;

/**
 * @author xul
 * @create 2018-01-23 16:07
 */
public interface StockUsageRepository extends CustomRepository<StockUsage, String> {

    @Query("SELECT T FROM StockUsage T WHERE 1 = 1 and id in('1','2','3','4','5','6','7','8','9') ")
    Page<StockUsage> findByBase(Pageable pageable);
}
